package com.singfan.core.dao.database;

import com.singfan.core.dao.database.model.BarberHairstyle;

import java.util.List;

/**
 *
 * Author: hansonghe
 * Date: 2015-08-19 12:12
 * Desc:
 */
public interface IBarberHairstyleDao {
    void create(BarberHairstyle barberHairstyle);
    //两种情况
    List<BarberHairstyle> selectListByBarberId(long barberId, int pageIndex, int pageSize);

    List<BarberHairstyle> selectBarberSelfHairstyleList(long barberId, int pageIndex, int pageSize, int status);

    List<BarberHairstyle> selectBarberHairstyleList(List<Long> hairstyleIdList);

    BarberHairstyle selectById(long hairstyleId);

    List<BarberHairstyle> selectBarberHairstyleList(int listOrderType, int cityId, int businessCircleId, int gender, int pageIndex, int pageSize);

    void updateCollectCount(long hairstyleId, boolean isCollected);

    List<BarberHairstyle> searchBarberHairstyleList(String searchText, int pageIndex, int pageSize);

    List<BarberHairstyle> findBarberHairstyleByFavorable(int pageIndex, int pageSize);

    List<BarberHairstyle> findBarberHairstyleByTime(int pageIndex, int pageSize);

    void update(BarberHairstyle barberHairstyle);

    void deleteBarberHairstyle(long barberId, long hairstyleId);

    void updateStatusByBarberId(long barberId, int status);
}